<!-- Dom模板 -->
<template>
  <div class="alertBox">
    <!-- Dom内容 -->
    <div class="alertHeader">
      <h4 style="text-align: center">{{ order }}</h4>
    </div>
    <div class="alertContent">
      <p style="padding: 5px 0px">
        <span>{{ orderNumber }}:</span>
        <el-input
          style="width: 300px; padding: 0px 15px"
          v-model="orderBian"
          placeholder="请输入内容"
        ></el-input>
      </p>
      <p style="padding: 5px 0px">
        <span>{{ userNames }}:</span>
        <el-input
          style="width: 300px; padding: 0px 15px"
          v-model="userName"
          placeholder="请输入内容"
        ></el-input>
      </p>
      <p style="padding: 5px 0px">
        <span>{{ classs }}:</span>
        <el-input
          style="width: 300px; padding: 0px 15px"
          v-model="className"
          placeholder="请输入内容"
        ></el-input>
      </p>
      <p style="padding: 5px 0px">
        <span>{{ price }}:</span>
        <el-input
          style="width: 300px; padding: 0px 15px"
          v-model="orderPrice"
          placeholder="请输入内容"
        ></el-input>
      </p>
      <p style="padding: 5px 0px">
        <span>{{ state }}:</span>
        <el-input
          style="width: 300px; padding: 0px 15px"
          v-model="orderState"
          placeholder="请输入内容"
        ></el-input>
      </p>
      <p style="padding: 5px 0px">
        <span>{{ time }}:</span>
        <el-input
          style="width: 300px; padding: 0px 15px"
          v-model="subTime"
          placeholder="请输入内容"
        ></el-input>
      </p>
    </div>
    <div class="alertBot">
      <el-button type="success" @click="toParentAlert" plain>确定</el-button>
      <el-button type="info" @click="toParentAlert" plain>取消</el-button>
    </div>
  </div>
</template>

<script>
// import a from './a'; // 引入组件
export default {
  props: [
    "orderNumber",
    "userNames",
    "classs",
    "price",
    "state",
    "time",
    "orderBian",
    "userName",
    "className",
    "orderPrice",
    "orderState",
    "subTime",
    "order",
  ],
  name: "",
  data() {
    return {};
  },
  // 生命周期 - 创建完成（访问当前this实例）
  created() {},
  // 生命周期 - 挂载完成（访问DOM元素）
  mounted() {},
  // Vue方法定义
  methods: {
    toParentAlert() {
      this.$emit("isShowAlert", false);
    },
  },
};
</script>

<style lang="less" scoped>
/* @import url(''); 引入css类 */
.alertBot {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
</style>